package org.luxor.commons.playwright.component.command;

import com.microsoft.playwright.Page;
import org.luxor.commons.playwright.component.Context;

/**
 * 网页驱动指令
 *
 * @author Mr.yan  @date 2022/6/9
 */
public interface PlaywrightCommand<T> {

    /**
     * 执行
     *
     * @param page 当前页面
     * @param context   上下文
     * @return T
     */
    T execute(Page page, Context context);

}
